package com.mxx.common.data.jpa;

import javax.persistence.criteria.*;

public class UpdateSpecHelper<T> extends AbstractUpdateSpecHelper<UpdateSpecHelper<T>, String> {

    public UpdateSpecHelper(Root root, CriteriaBuilder criteriaBuilder, CriteriaQuery criteriaQuery, CriteriaUpdate criteriaUpdate) {
        super(root, criteriaBuilder, criteriaQuery, criteriaUpdate);
    }

    @Override
    public UpdateSpecHelper<T> getTarget() {
        return this;
    }

    @Override
    protected Path get(String key) {
        return root.get(key);
    }
}
